package base.sys.api.enetity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.SqlCondition;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import base.core.api.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * @Description
 * @Author Pengwei
 * @CreatDate 2022/1/8 16:08
 */
@Data
@Accessors(chain = true)
@Schema(description = "数据字典")
@TableName("base_sys_dict")
public class SysDict extends BaseEntity {
    @TableId(type = IdType.AUTO)
    @Schema(description = "主键")
    Integer id;

    @Schema(description = "字典名称")
    @TableField(condition = SqlCondition.LIKE)
    String name;

    @TableField(condition = SqlCondition.LIKE)
    @Schema(description = "字典标识")
    String code;

    @Schema(description = "字典分类")
    String category;

    @Schema(description = "是否禁用")
    Boolean disabled;
}
